package com.niiwoo.civet.account.dao.mapper;

import java.util.List;

import com.niiwoo.civet.account.dao.entity.BatchLendOrder;

import org.apache.ibatis.annotations.Param;

public interface BatchLendOrderMapperExt extends BatchLendOrderMapper {

	BatchLendOrder queryBatchLendOrderByRequestNoForUpdate(
			@Param("requestNo") String requestNo);
	
	BatchLendOrder queryLastBatchLendOrderByProjectId(
			@Param("projectId") Long projectId);
	
	List<BatchLendOrder> queryBatchLendOrderByProjectId(@Param("projectId") Long projectId);
	
	List<BatchLendOrder> queryHandlingBatchLendOrderByProjectId(@Param("projectId") Long projectId);
	
	BatchLendOrder queryBatchLendOrderByWithdrawOrderId(@Param("withdrawOrderId") Long withdrawOrderId);
	
	List<BatchLendOrder> querySuccessBatchLendOrderByProjectId(@Param("projectId") Long projectId);
	
	Integer queryBatchLendOrderNotSuccessNumByBatchNo(@Param("batchNo") String batchNo);
}
